import request from '@/utils/request'

export function listByTime(query) {
  return request({
    url: '/classroom/details/listByTime',
    method: 'get',
    params: query
  })
}

export function uploadFilesByType(data) {
  return request({
    url: '/common/uploadFilesByType',
    method: 'post',
    data: data
  })
}

export function save(data) {
  return request({
    url: '/classroom/details/save',
    method: 'post',
    data: data
  })
}

export function deleteById(id) {
  return request({
    url: '/classroom/details/' + id,
    method: 'delete'
  })
}
export function getPictureBookByIds(id) {
  return request({
    url: '/picture-books/getPictureBookByIds/' + id,
    method: 'get'
  })
}

export function update(data) {
  return request({
    url: '/classroom/details',
    method: 'put',
    data: data
  })
}

export function getVocabularyByIds(id) {
  return request({
    url: '/extend-vocabularies/getVocabularyByIds/' + id,
    method: 'get'
  })
}

export function studentListAll(query) {
  return request({
    url: '/student-info/list',
    method: 'get',
    params: query
  })
}


export function studentElevationGetById(query) {
  return request({
    url: '/classroom/evaluation/list',
    method: 'get',
    params: query
  })
}


export function evaluationSave(data) {
  return request({
    url: '/classroom/evaluation/save',
    method: 'post',
    data: data
  })
}
export function selectTeacherList(query) {
  return request({
    url: '/classroom/details/selectUserRole',
    method: 'get',
    params: query
  })
}

export function checkInRecordByClassId(query) {
  return request({
    url: '/checkInRecord/listByClassId',
    method: 'get',
    params: query
  })
}
